package com.itheima.web;

import com.itheima.service.MiaoLeiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MiaoLeiController {

    @Autowired
    private MiaoLeiService miaoLeiService;

    @GetMapping("user/findAll")
    public String findAll() {
       return miaoLeiService.findAll();
    }
}